const path = require('path')
console.log(path.join('a', 'b', 'c'));//将字符串abc拼接成一个路径a/b/c
console.log(path.join(process.cwd(), 'a', 'b', 'c'));
//process.cwd()表示该进程的绝对路径， 'a', 'b', 'c'是将其拼接在路径后面
console.log(path.resolve('a', 'b', 'c'));//将'a', 'b', 'c'拼接到当前目录路径后
